/*
 * Filename:    IndicationBeanBaseDTO.java
 * Copyright:   2014 中国平安保险（集团）股份有限公司 版权所有
 * Company:     平安科技养老险及健康险系统开发部
 * Create at:   2014年10月18日
 */
package com.paic.mhis.hcpms.quota.settlement.dto;

import java.text.DecimalFormat;

import com.paic.mhis.common.base.dto.BaseDTO;

public class IndicationBeanBaseDTO extends BaseDTO implements Comparable<IndicationBeanBaseDTO> {
	private static final long serialVersionUID = 1L;
	private double first;
	private double second;
	private double third;
	private double fourth;
	private double fifth;
	private double sixth;
	private double seventh;
	private double eighth;
	private double ninth;
	private double tenth;
	private double eleventh;
	private double twelfth;

	private double yoy;
	private double mom;

	public double getFirst() {
		return first;
	}

	public void setFirst(double first) {
		this.first = first;
	}

	public double getSecond() {
		return second;
	}

	public void setSecond(double second) {
		this.second = second;
	}

	public double getThird() {
		return third;
	}

	public void setThird(double third) {
		this.third = third;
	}

	public double getFourth() {
		return fourth;
	}

	public void setFourth(double fourth) {
		this.fourth = fourth;
	}

	public double getFifth() {
		return fifth;
	}

	public void setFifth(double fifth) {
		this.fifth = fifth;
	}

	public double getSixth() {
		return sixth;
	}

	public void setSixth(double sixth) {
		this.sixth = sixth;
	}

	public double getSeventh() {
		return seventh;
	}

	public void setSeventh(double seventh) {
		this.seventh = seventh;
	}

	public double getEighth() {
		return eighth;
	}

	public void setEighth(double eighth) {
		this.eighth = eighth;
	}

	public double getNinth() {
		return ninth;
	}

	public void setNinth(double ninth) {
		this.ninth = ninth;
	}

	public double getTenth() {
		return tenth;
	}

	public void setTenth(double tenth) {
		this.tenth = tenth;
	}

	public double getEleventh() {
		return eleventh;
	}

	public void setEleventh(double eleventh) {
		this.eleventh = eleventh;
	}

	public double getTwelfth() {
		return twelfth;
	}

	public void setTwelfth(double twelfth) {
		this.twelfth = twelfth;
	}

	public double getYoy() {
		return yoy;
	}

	public void setYoy(double yoy) {
		this.yoy = yoy;
	}

	public double getMom() {
		return mom;
	}

	public void setMom(double mom) {
		this.mom = mom;
	}

	@Override
	public int compareTo(IndicationBeanBaseDTO o) {
		DecimalFormat df = new DecimalFormat("0");
		double temp1 = this.getMom();
		double temp2 = o.getMom();
		return Integer.parseInt(df.format(temp2 - temp1));
	}

	@Override
	public boolean equals(Object obj) {
		if (!(obj instanceof IndicationBeanBaseDTO))
			return false;

		IndicationBeanBaseDTO t1 = (IndicationBeanBaseDTO) obj;
		if (this.compareTo(t1) == 0)
			return true;

		return (this == obj);
	}

	@Override
	public int hashCode() {
		return super.hashCode();
	}

}
